﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DataContexts.Supplier;

public partial class Admin_ViewCountries : System.Web.UI.Page
{
    SupplierDataContext supplierContext = new SupplierDataContext();

    protected void Page_Load(object sender, EventArgs e)
    {
        ((BaseMasterPage)this.Master).CurrentPage = PageConfig.Pages.AdminCountryDefault;
        if (!((BaseMasterPage)this.Master).AuthorizeCurrentUser())
            return;

        if (!IsPostBack)
        {
            gvCountry.DataSource = from c in supplierContext.Countries
                                select c;
            gvCountry.DataBind();
        }
    }
    protected void gvCountry_RowDataBound(object sender, GridViewRowEventArgs e)
    {

    }
}
